package com.qf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor   //全参构造
@NoArgsConstructor    //无参构造
public class Student {
    private int id;
    private String sname;
    private int age;
    private String sex;
    private double score;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private int cid;
    private String password;
}
